package com.chixing.service;

import com.chixing.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "productServer")
public interface ProductClient {
    @GetMapping(value = "product/{proId}")
    Product getById(@PathVariable("proId")Integer id);
}
